package com.yao.myioc.resource;

import java.io.InputStream;

/**
 * 加载bean配置文件的工作流
 * @author yao
 */
public class ClasspathResource implements Resource {
	
	private String location;
	
	public ClasspathResource(String location) {
		super();
		this.location = location;
	}

	@Override
	public InputStream getResourceAsStream() {
		return this.getClass().getClassLoader().getResourceAsStream(location);
	}

}
